
package com.submaxim_testdb.data;

import java.io.Serializable;
import java.util.Date;


/**
 *  submaxim_testDB.DnsblId
 *  11/10/2011 17:39:29
 * 
 */
public class DnsblId
    implements Serializable
{

    private Integer userId;
    private Date datetime;
    private String source;
    private String url;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof DnsblId)) {
            return false;
        }
        DnsblId other = ((DnsblId) o);
        if (this.userId == null) {
            if (other.userId!= null) {
                return false;
            }
        } else {
            if (!this.userId.equals(other.userId)) {
                return false;
            }
        }
        if (this.datetime == null) {
            if (other.datetime!= null) {
                return false;
            }
        } else {
            if (!this.datetime.equals(other.datetime)) {
                return false;
            }
        }
        if (this.source == null) {
            if (other.source!= null) {
                return false;
            }
        } else {
            if (!this.source.equals(other.source)) {
                return false;
            }
        }
        if (this.url == null) {
            if (other.url!= null) {
                return false;
            }
        } else {
            if (!this.url.equals(other.url)) {
                return false;
            }
        }
        return true;
    }

    public int hashCode() {
        int rtn = 17;
        rtn = (rtn* 37);
        if (this.userId!= null) {
            rtn = (rtn + this.userId.hashCode());
        }
        rtn = (rtn* 37);
        if (this.datetime!= null) {
            rtn = (rtn + this.datetime.hashCode());
        }
        rtn = (rtn* 37);
        if (this.source!= null) {
            rtn = (rtn + this.source.hashCode());
        }
        rtn = (rtn* 37);
        if (this.url!= null) {
            rtn = (rtn + this.url.hashCode());
        }
        return rtn;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}
